import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/home/home.vue'
import Cara from '@/views/home/cara.vue'
import Carb from '@/views/home/carb.vue'
import Carc from '@/views/home/carc.vue'
import Card from '@/views/home/card.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      name: 'home',
      component: HomeView,
      children:[
        {path: 'cara',name: 'cara',component: Cara},
        {path: 'carb',name: 'carb',component: Carb},
        {path: 'carc',name: 'carc',component: Carc},
        {path: 'card',name: 'card',component: Card},
      ]
    },
    
  ],
})

export default router
